<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
    <head>
        <title>Title</title>
    </head>
    <body>
        <form action="<%=request.getContextPath()%>/upload" method="post" enctype="multipart/form-data">

            姓名：<input type="text" name="name"/><br/>
            文件：<input type="file" name="file"/><br/>

            <input type="submit" value="提交"/><br/>

            <%
                String message= (String) request.getAttribute("message");
                if(message!=null){
                    out.print(message);
                }
            %>
        </form>
    </body>
</html>
